const express=require('express');
//创建路由
const router = express.Router();

router.get('/home',(req,res)=> {
    res.send('前台')
})
router.get('/search',(req,res)=> {
    res.send('搜索页')
})

// 暴露router
module.exports = router